Skip to content

Conversation

shethaadit
Copy link
Contributor

@shethaadit shethaadit commented Jan 27, 2025

Summary

This PR elevates the clarity and usability of the F# literals documentation by introducing meticulously detailed examples and addressing key developer pain points. Key improvements include:

  • Comprehensive explanations of the [<Literal>] attribute and its compile-time behavior.
  • Advanced use cases, such as DllImport scenarios and concise pattern matching with named literals.

Fixes #36921


Internal previews

📄 File 🔗 Preview link
docs/fsharp/language-reference/literals.md Literals

@dotnetrepoman dotnetrepoman bot added this to the January 2025 milestone Jan 27, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-fsharp/svc community-contribution Indicates PR is created by someone from the .NET community. labels Jan 27, 2025
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @shethaadit

This LGTM, and I'll :shipit: now.

@BillWagner BillWagner merged commit 3fdb4bb into dotnet:main Jan 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fsharp/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Say something about using a function to compute a [<Literal>]

3 participants